#ifndef TREE_NODE_H
#define TREE_NODE_H

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>

typedef int (*CMP)(const void*,const void*);
typedef void (*FUNC)(const void*);

typedef struct TreeNode{
    void* data;
    struct TreeNode *left;
    struct TreeNode *right;
    bool hasLeftClue;
    bool hasRightClue;
    int weight;
    int height;
}TreeNode;

TreeNode* create_tn(void* data,int weight);

#endif // TREE_NODE_H
